# -*-coding:utf-8 -*-
# File  : deviceModelAdd_api.py
# Time  ：2021/12/7 14:45
# Author：author name

from api.manage.manage_base import ManageBase


class DeviceModelAddApi(ManageBase):
    def __init__(self):
        """添加设备机型接口"""
        super().__init__()
        self.url = self.host + "cloudlottery-manage/devicemode/add"
        self.json = {"deviceModeName": "自动化测试机型01", "motornum": 6, "remark": "", "payresultmsg": 2, "modeType": 0,
                     "description": "自动化测试机型01",
                     "picture": "https://enlive.oss-cn-shenzhen.aliyuncs.com/Uploads/lottery/20211207/43535A_1638859485346_1.jpg",
                     "negativePicture": "https://enlive.oss-cn-shenzhen.aliyuncs.com/Uploads/lottery/20211207/XHBPcQ_1638859490387_1.jpg",
                     "codeScannerId": "292600f94c2811ec936afa163ef08725",
                     "ticketDistributorId": "f48fdd5a4c1011ec936afa163ef08725",
                     "maincontrolId": "baae5eaa4c1711ec936afa163ef08725",
                     "androidMotherboardId": "9fc47e214c2711ec936afa163ef08725",
                     "printerId": "8eeb3c414c2911ec936afa163ef08725", "readerId": "4baf935b4c2811ec936afa163ef08725",
                     "camera": 2, "payCamera": 1, "doorInduction": 1, "electronicLock": 1, "warningLight": 1,
                     "emoticonScreen": 1, "resolutionType": 0}
        self.method = "post"
